import DashView from './components/Dash.vue'
import LoginView from './components/Login.vue'
import NotFoundView from './components/404.vue'

// Import Views - Dash
import MoviesView from './components/views/Dashboard.vue'
import DatasView from './components/views/Tables.vue'
import SentimentsViem from './components/views/Sentiment.vue'

// Routes
const routes = [
  {
    path: '/login',
    component: LoginView
  },
  {
    path: '/',
    component: DashView,
    children: [
      {
        path: '/movie',
        alias: '',
        component: MoviesView,
        name: 'movie',
        meta: {description: 'Data analysis of Douban high score film'}
      }, {
        path: '/data',
        component: DatasView,
        name: 'Data Analysis',
        meta: {description: 'Data analysis on Douban films'}
      }, {
        path: '/sentiment',
        component: SentimentsViem,
        name: 'Sentiment Analysis',
        meta: {description: 'Sentiment analysis on Douban films'}
      }
    ]
  }, {
    // not found handler
    path: '*',
    component: NotFoundView
  }
]

export default routes
